Fix problems in ns port found by static checking.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 17 Nov 2012 15:15:49 +0000 (07:15 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 17 Nov 2012 15:15:49 +0000 (07:15 -0800)
commitafe2f74915725713fd9f3a80b1c1f99a0f88187b
treee9b80da07a7bb4543c010fe2a8c96b5a218aacc0
parent0e64e423caeb8b39f9707392857ae48d4d2b69ed
Fix problems in ns port found by static checking.

* nsterm.m: Include <pthread.h>, for pthread_mutex_lock etc.
(hold_event, setPosition:portion:whole:): Send SIGIO only to self,
not to process group.
(ns_select): Use emacs_write, not write, as that's more robust
in the presence of signals.
(fd_handler:): Check for read errors.
src/ChangeLog
src/nsterm.m